<?php
namespace pinduoduo\Request;

use pinduoduo\AbstractInterface\Request;

class PddDdkPidMediaidBindRequest extends Request
{
    /**
     * 批量绑定推广位的媒体id
     * @var string
     */
    private $type = 'pdd.ddk.pid.mediaid.bind';

    /**
     * 媒体id
     * @var
     */
    private $mediaId;

    /**
     * 推广位列表，例如：["60005_612"]，最多支持同时传入1000个
     * @var
     */
    private $pidList;

    public function setType($type)
    {
        $this->type = $type;
    }

    public function getType()
    {
        return $this->type;
    }

    public function setMediaId($mediaId)
    {
        $this->mediaId = $mediaId;
    }

    public function getMediaId()
    {
        return $this->mediaId;
    }

    public function setPidList($pidList)
    {
        $this->pidList = $pidList;
    }

    public function getPidList()
    {
        return $this->pidList;
    }

    public function getParams()
    {
        $params = [
            'type'     => $this->type,
            'media_id' => $this->mediaId,
            'pid_list' => $this->pidList,
        ];
        return array_filter($params);
    }
}
